<template>
<div>
    <a v-bind:href="url">百度一下</a>
    <img :src="imgUrl">
</div>
</template>

<script setup>
    import { ref } from 'vue';

    const url = ref('https://www.baidu.com') 
    const imgUrl = ref('https://pic1.zhimg.com/v2-a58fa2ab84be291418da2652805f8270_b.jpg')
</script>

<style scoped>

</style>